package com.fivemin.website_statistics.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description: 注册应用信息
 */

@TableName("web_user")
public class WebUser extends BasePojo{
    @TableField(value = "web_name")
    @NotBlank
    private String webName;
    @TableField(value = "web_url")
    @NotBlank
    private String webUrl;
    @TableField(value = "key_value")
    private String keyValue;
    @TableField(value = "secret")
    private String secret;
    @TableField(value = "desc")
    private String desc;
    @TableField(value = "pv")
    private int pv;

    public WebUser() {
    }

    public WebUser(Long id,String createTime, String webName, String webUrl, String keyValue, String secret, String desc, int pv) {
        super(id, createTime);
        this.webName = webName;
        this.webUrl = webUrl;
        this.keyValue = keyValue;
        this.secret = secret;
        this.desc = desc;
        this.pv = pv;
    }

    public String getWebName() {
        return webName;
    }

    public void setWebName(String webName) {
        this.webName = webName;
    }

    public String getWebUrl() {
        return webUrl;
    }

    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
    }

    public String getKeyValue() {
        return keyValue;
    }

    public void setkeyValue(String keyValue) {
        this.keyValue = keyValue;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setKeyValue(String keyValue) {
        this.keyValue = keyValue;
    }

    public int getPv() {
        return pv;
    }

    public void setPv(int pv) {
        this.pv = pv;
    }

    @Override
    public String toString() {
        return "WebUser{" +
                "webName='" + webName + '\'' +
                ", webUrl='" + webUrl + '\'' +
                ", keyValue='" + keyValue + '\'' +
                ", secret='" + secret + '\'' +
                ", desc='" + desc + '\'' +
                ", pv=" + pv +
                '}';
    }
}
